package xiegd.study.eval;

import cn.hutool.extra.expression.ExpressionUtil;

import java.util.HashMap;
import java.util.Map;

/**
 * @Author: xieguangda
 * @Description:
 * @Date: 2023/4/12 11:10
 */
public class ExpressionUtilTest {
    public static void main(String[] args) {
        //ExpressionUtil expressionUtil;
        Map<String,Object> hashMap = new HashMap<>();
//        hashMap.put("A",1111);
//        hashMap.put("B",333);
        Object eval = ExpressionUtil.eval("1100", hashMap);
        //Object eval1 = ExpressionUtil.eval("(A&&B)", hashMap);
        System.out.println("我是测试啊：：" + eval);
    }
}
